package com.lagou.domain;

import java.util.List;

public class Department {
    //私有化成员变量
    private Integer depart_id;      //部门id
    private String depart_name;     //部门名称
    private String major_name;      //主管名称
    private String telephone;       //联系方式
    private String email;           //邮箱
    private List<Employees> employeesList;  //一对多的表现

    public Integer getDepart_id() {
        return depart_id;
    }

    public void setDepart_id(Integer depart_id) {
        this.depart_id = depart_id;
    }

    public String getDepart_name() {
        return depart_name;
    }

    public void setDepart_name(String depart_name) {
        this.depart_name = depart_name;
    }

    public String getMajor_name() {
        return major_name;
    }

    public List<Employees> getEmployeesList() {
        return employeesList;
    }

    public void setEmployeesList(List<Employees> employeesList) {
        this.employeesList = employeesList;
    }

    public void setMajor_name(String major_name) {
        this.major_name = major_name;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @Override
    public String toString() {
        return "department{" +
                "depart_id=" + depart_id +
                ", depart_name='" + depart_name + '\'' +
                ", major_name='" + major_name + '\'' +
                ", telephone='" + telephone + '\'' +
                ", email='" + email + '\'' +
                '}';
    }
}
